#ifndef PBULLET_H
#define PBULLET_H

#include <physics/pobject.h>

/**
  * Class of bullet.
  */
class PBullet : public PObject
{
public:
    /**
      * Creates bullet in world "world" with name "name".
      */
    PBullet(PWorld *world, QString name = "");

    /**
      * Serializes bullet.
      */
    void serialize(QDomDocument *doc, QDomElement *e) const;

    /**
      * Deserializes bullet.
      */
    static PBullet *deserialize(QDomNode *e, PWorld *parent);
};

#endif // PBULLET_H
